<div>
    <h3>所有车辆信息</h3>

    <div class="xiaomi">
      <h3 class="ym">添加车辆信息</h3>
      <label class="damimi">车的品牌名:</label> <input #heroName />
      <button (click)="addHero(heroName.value); heroName.value=''">
        添加
      </button>  
    </div>
    <ul class="heroes">
      <li *ngFor="let hero of heroes">
        <span class="badge">{{hero.id}}.{{hero.brand}} 拥有者id是{{hero.ownerId}}</span>
        <button class="modify" (click)="onSelect(hero)" [class.selected]="hero === selectedHero">修改</button>
        <button class="delete" (click)="deleteHero(hero); $event.stopPropagation()">删除</button>
      </li>
    </ul>
</div>




